import request from '@/utils/request'

const kpi = {
  list(params){
    return request.get("/kpzh/performanceIndicator/list", { params })
  },
  treeselect(params) {
    return request.get("/kpzh/performanceIndicator/tree", { params })
  },
  add(data){
    return request.post("/kpzh/performanceIndicator/add", data)
  },
  edit(data){
    return request.post("/kpzh/performanceIndicator/update", data)
  },
  del(id){
    return request.post(`/kpzh/performanceIndicator/delete/${id}`)
  },
  get(id){
    return request.get(`/kpzh/performanceIndicator/detail/${id}`)
  },
}

export default kpi;
